﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.Mvc;

namespace SAKS.Helpers
{
    public static class TableTitleHelper
    {
        public static HtmlString TableTitle(this HtmlHelper helper,string[] titles)
        {
            StringBuilder sb = new StringBuilder();
            foreach (var item in titles)
            {
                sb.Append("<th>");
                sb.AppendFormat("{0}", helper.Encode(item));
                sb.Append("</th>");
            }
            
            return new HtmlString(sb.ToString());
            
        }
    }
}